package com.neusoft.resturant.service;


import com.neusoft.resturant.common.utils.PageResult;
import com.neusoft.resturant.entity.ResThumbup;

import java.util.List;

/**
 * 点赞Service接口
 * 
 * @author ruoyi
 * @date 2023-12-11
 */
public interface IResThumbupService 
{
    /**
     * 查询点赞
     * 
     * @param id 点赞主键
     * @return 点赞
     */
    public ResThumbup selectResThumbupById(Long id);

    /**
     * 查询点赞列表
     * 
     * @param resThumbup 点赞
     * @return 点赞集合
     */
    public List<ResThumbup> selectResThumbupList(ResThumbup resThumbup);

    /**
     * 新增点赞
     * 
     * @param resThumbup 点赞
     * @return 结果
     */
    public int insertResThumbup(ResThumbup resThumbup);

    /**
     * 修改点赞
     * 
     * @param resThumbup 点赞
     * @return 结果
     */
    public int updateResThumbup(ResThumbup resThumbup);

    /**
     * 批量删除点赞
     * 
     * @param ids 需要删除的点赞主键集合
     * @return 结果
     */
    public int deleteResThumbupByIds(Long[] ids);

    /**
     * 删除点赞信息
     * 
     * @param id 点赞主键
     * @return 结果
     */
    public int deleteResThumbupById(Long id);

    /**
     * 返回分页列表
     * @param resThumbup
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult selectResThumbupList2(ResThumbup resThumbup, Integer pageNum, Integer pageSize);
}
